    <h2>达人申请管理</h2>

    <form class="form-inline ng-scope ng-pristine ng-valid">
        <label class="control-label" for="textinput">开始时间:</label>
        <input type="text" id="startDate" class="form-control datepicker" size="12" data-date-format="yyyy-mm-dd" ng-model="starttime">
        <label class="control-label" for="textinput">结束时间:</label>
        <input type="text" id="endDate" class="form-control datepicker" size="12" data-date-format="yyyy-mm-dd" ng-model="endtime">
        <label class="control-label" for="textinput">小区:</label>
        <input type = "text" id = "community_select" value = "" class="form-control" ng-model="communityId">
        <label class="control-label" for="textinput">审核状态:</label>
        <select ng-model="status">
            <option value="">-- 请选择 --</option>
            <option value="0">审核中</option>
            <option value="1">已通过</option>
            <option value="-1">已拒绝</option>
        </select>
        <label class="control-label" for="textinput">昵称:</label>
        <input type = "text" id = "nik_name" value = "" class="form-control" ng-model="nickname">
        <label class="control-label" for="textinput">手机:</label>
        <input type = "text" id = "phone" value = "" class="form-control" ng-model="phone">
        <button type="submit" id="btnSearch" class="form-control btn btn-secondary" ng-click="selectCondition(communityId,starttime,endtime,status,nickname,phone)">搜索
        </button>
    </form>

    <mutau>
        <ul class="pagination" num-pages="tasks.pageCount" current-page="tasks.currentPage"
            on-select-page="selectPage(page)">
            <li ng-class="{disabled: noPrevious()}"><a ng-click="selectPrevious()">&laquo;</a>

            </li>
            <li ng-repeat="page in pages" ng-class="{active: isActive(page)}"><a
                    ng-click="selectPage(page)">{{page}}</a>

            </li>
            <li ng-class="{disabled: noNext()}"><a ng-click="selectNext()">&raquo;</a>

            </li>
            <li ng-show="currentPage>6"><a ng-click="selectPage(1)">首页</a>

            </li>
        </ul>
    </mutau>

    <table class="table table-condensed">
        <thead>
        <tr>
            <th>小区</th>
            <th>昵称</th>
            <th>单元号</th>
            <th>手机号</th>
            <th>发帖数</th>
            <th>发活动数</th>
            <th>回复数</th>
            <th>点赞数</th>
            <th>精华贴数</th>
            <th>分享数</th>
            <th>达人类型</th>
            <th>申请时间</th>
            <th>申请资料</th>
            <th>详细信息</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="talent in talentList">

            <td style="width: 80px;">{{talent.community.communityName}}</td>
            <td style="width: 90px;">{{talent.nickName}}</td>
            <!--<td style="width: 60px;"><span ng-repeat="t in activity.tag">{{t.value}} </span></td>-->
            <td>{{talent.roomUnit}}</td>
            <td>{{talent.mobilePhone}}</td>
            <td>{{talent.questionLength}}</td>
            <td>{{talent.activityLength}}</td>
            <td>{{talent.replyLength}}</td>
            <td>{{talent.praiseLength}}</td>
            <td>{{talent.levelLength}}</td>
            <td>{{talent.fenxiang}}</td>
            <td>{{talent.speciality}}</td>
            <td>{{talent.dateCreated}}</td>
            <td>{{talent.ziliao}}</td>
            <td>{{talent.detail}}</td>

            <td><a class="btn btn-default btn-xs" data-toggle="modal" data-target="#edit{{$index}}"
                   ng-click="initTag()">编辑</a>
                <a class="btn btn-primary btn-xs" ng-show="activity.displayOrder!=3"
                   ng-click="moveToTop(activity.objId,communityId)">拒绝</a>
                <a class="btn btn-danger btn-xs" ng-show="activity.displayOrder==3"
                   ng-click="cancelTop(activity.objId,communityId)">通过</a>

                <div class="modal fade" id="edit{{$index}}" tabindex="-1" role="dialog"
                     aria-labelledby="myModalLabel" aria-hidden="false">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal"
                                        aria-label="Close"><span
                                        aria-hidden="true">&times;</span></button>
                                <h5 class="modal-title" id="refusal">标题：{{activity.title}}</h5>
                            </div>
                            <div class="modal-body">
                                <div>
                                    <p style="text-align: center">Edit Neighbourhood Activity</p>
                                    <p class="text-danger" ng-show="showErrorMsg">{{onErrorMsg}}</p>
                                    标题:<input type="text"  ng-model="activity.title" style="width: 80%;"/> <br><br/>
                                    内容:<input type="text"  ng-model="activity.desc" style='width:80%'/> <br><br/>
                                    <!--结束时间:<input type="text" id="endDate" data-provide="datepicker" class="form-control datepicker" data-date-format="yyyy-MM-dd HH:mm:ss" ng-model="activity.deadline" style="width: 80%;">-->
                                    <div class="form-group">
                                        <label class="control-label" for="textinput">图片：<!--category:--></label>
                                        <!--<img ng-src={{qimages.url}} id="imgs"  />-->
                                        <!--<img class="form-control" ng-model="question.data.images" id="imgs">-->
                                        <slide ng-repeat="img in activity.images" active="img.active">
                                            <img ng-src="http://{{imgHost+img.imageURL}}" style="width: 100px;" onclick="if($(this).width()==100){
                                                $('img').width(100);
                                                $(this).width(360);
                                                }else{
                                                $(this).width(100);
                                                };">
                                        </slide>
                                    </div>

                                    标签 <br/>
                                    <label ng-repeat="m in tag.data">
                                        <input style="zoom:1.5;margin-left: 10px;vertical-align:middle"
                                               type="checkbox" ng-model="chk" ng-click="toggle(chk,m.objId)"/>{{m.value}}
                                    </label>
                                </div>
                            </div>
                            <div class="modal-footer">
                                <button
                                        class="btn btn-default btn-sm" data-dismiss="modal">取消
                                </button>
                                <button ng-click="updateActivity(activity)"
                                        type="submit"
                                        class="btn btn-default btn-sm" data-dismiss="modal">确定
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal fade" id="members{{$index}}" tabindex="-1" role="dialog"
                     aria-labelledby="myModalLabel" aria-hidden="false">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal"
                                        aria-label="Close"><span
                                        aria-hidden="true">&times;</span></button>
                                <p style="text-align: center">参加人员</p>
                                <h5 class="modal-title">标题：{{activity.title}}</h5>
                            </div>
                            <div class="modal-body">
                                <table class="table table-condensed">
                                    <thead>
                                    <tr>
                                        <th>姓名</th>
                                        <th>用户类型</th>
                                        <th>数量</th>
                                        <th>备注</th>
                                        <th>电话</th>
                                        <th>收货地址</th>
                                        <th>参加时间</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr ng-repeat="member in activity.partake">
                                        <td>{{member.name + member.user.nickName}}</td>
                                        <td>{{member.partakeType=="1"?"APP用户":"微信用户"}}</td>
                                        <td>{{member.number}}</td>
                                        <td>{{member.note}}</td>
                                        <td>{{member.phone}}</td>
                                        <td>{{member.address}}</td>
                                        <td>{{member.time | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="modal-footer">
                                <button
                                        class="btn btn-default btn-sm" data-dismiss="modal">取消
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal fade" id="replies{{$index}}" tabindex="-1" role="dialog"
                     aria-labelledby="myModalLabel" aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content" style = "overflow-y: scroll;height: 600px;">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal"
                                        aria-label="Close"><span
                                        aria-hidden="true">&times;</span></button>
                                <p style="text-align: center">回复</p>
                                <h5 class="modal-title">标题：{{activity.title}}</h5>
                            </div>
                            <div class="modal-body">
                                <slide ng-repeat="img in activity.replies.images" active="img.active">
                                    <img ng-src="http://t.img.66xiaoqu.com{{img.imageURL}}" style="width: 180px;height: 180px;">
                                </slide>
                            </div>
                            <div class="modal-body">
                                <table class="table table-condensed">
                                    <thead>
                                    <tr>
                                        <th>回复内容</th>
                                        <th>回复者</th>
                                        <th>回复时间</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr ng-repeat="r in activity.replies"  data-rep-id={{r.repliedBy.objId}} data-rep-name={{r.repliedBy.nickName}} ng-click="getRepId($event)">
                                        <td width="200" style = "white-space:normal;">{{r.replyDesc}}</td>
                                        <td width="100">{{r.repliedBy.nickName}}</td>
                                        <td width="150">{{r.dateReplied | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <form>
                                    <div style = "margin-bottom: 10px;">
                                        <label style = "margin-right: 42px;" ng-click="repPost($event)"><input type="radio" checked="true" name="repClass" value="post" class="rep-post radio-rep"> 回复帖子</label>
                                        <label style = "margin-right: 6px;" ng-click="repPerson($event)"><input type="radio" name="repClass" value="person" class="rep-person radio-rep"> 回复某人</label><input type = "text" readonly placeholder="点击每行选择" class = "select-person" ng-model="data2.repName">
                                    </div>
                                    <input type="text" class="form-control" placeholder="回复内容..."
                                           ng-model="reply.replies.replyDesc" id="reply">
                                </form>
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-secondary btn-sm" ng-click="sendReply(activity,reply,data2,$event)" data-community-id = {{question.community.objId}}>回复</button>
                                <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">取消</button>
                            </div>
                        </div>
                    </div>
                </div>


            </td>
        </tr>
        </tbody>
    </table>